Skip to content

Add deapi - #716

Open
Pietrus-914 wants to merge 1 commit into
agent0ai:mainfrom
deapi-ai:add-deapi
Open

Pietrus-914 wants to merge 1 commit into
agent0ai:mainfrom
deapi-ai:add-deapi

Conversation

@Pietrus-914

Copy link
Copy Markdown

Adds plugins/deapi/index.yaml and a 180×180 thumbnail. The entry points to https://github.com/deapi-ai/deapi-agent-zero

The plugin connects Agent Zero to deAPI's hosted MCP server (https://mcp.deapi.ai/mcp) and adds two tools:

  • deapi_tools lists the server's tools and their arguments. It reads the list at runtime, so new models and tools appear without a plugin update.
  • deapi calls one of them: image, video, speech and music generation, transcription of files and YouTube, TikTok, X, Twitch and Kick links, video description, or OCR.

It reads the key from DEAPI_API_KEY and never echoes it back: errors from the MCP SDK are replaced with fixed messages, and tool output has the key redacted. Long jobs wait up to 15 minutes. The repository has an MIT LICENSE, and the root plugin.yaml name is deapi.

Tests: pytest tests in the plugin repository, 9 passed, against mcp==1.27.0, the version Agent Zero pins.

@3clyp50

3clyp50 commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator

Thanks for the plugin! Could you move the API key redaction in helpers/client.py before the response is truncated? If a response echoes the key, trimming it first can leave part of the key in chat history.

Alessandro

@Pietrus-914

Copy link
Copy Markdown
Author

Good catch, thanks. Fixed in deapi-ai/deapi-agent-zero@9f44467 (0.1.1):

  • The key is now redacted from the whole response before it is trimmed. This applies to tool results, tool errors and the tool list.
  • Redaction also covers the URL-encoded and JSON-escaped key and its secret part on its own.
  • New tests put the key at every offset around the cut, including straddling it. They all fail on the old order and pass now (74 tests).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants